﻿<phone:PhoneApplicationPage
    x:Class="WindowsPhone8App.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="GEO RX" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="demo" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>
        <StackPanel x:Name="ContentPanel" Margin="12,0,12,0" Grid.Row="1" >
        	<TextBlock TextWrapping="Wrap" Text="status" Style="{StaticResource PhoneTextSubtleStyle}"/>
        	<TextBlock x:Name="statusTextBlock" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Text="--" HorizontalAlignment="Center"/>
        	<TextBlock TextWrapping="Wrap" Text="location" Style="{StaticResource PhoneTextSubtleStyle}"/>
        	<TextBlock x:Name="locationTextBlock" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Text="0,0" HorizontalAlignment="Center"/>
        	<TextBlock TextWrapping="Wrap" Text="distance" Style="{StaticResource PhoneTextSubtleStyle}"/>
        	<TextBlock x:Name="distanceTextBlock" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Text="0.0m" HorizontalAlignment="Right"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar Mode="Default" Opacity="1.0" IsMenuEnabled="False" IsVisible="True">

            <shell:ApplicationBarIconButton x:Name="startApplicationBarIconButton" Click="Start_Click" IconUri="/Assets/AppBar/appbar.start.rest.png" Text="start" IsEnabled="False" />
            <shell:ApplicationBarIconButton x:Name="stopApplicationBarIconButton" Click="Stop_Click" IconUri="/Assets/AppBar/appbar.stop.rest.png" Text="stop" IsEnabled="False" />
            <shell:ApplicationBarIconButton x:Name="resetApplicationBarIconButton" Click="Reset_Click" IconUri="/Assets/AppBar/appbar.reset.rest.png" Text="reset" IsEnabled="False"/>

        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>


</phone:PhoneApplicationPage>